def f():
    a = 1
    def g():
        nonlocal a
        a += 1
        print(a)
    return g

g1 = f()
g1()
g1()

print("-"*20)
def s():
    a = 1
    a += 1
    print(a)

s()
s()
